package com.soft.cake.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.soft.cake.service.IAdminService;

/**
 * @author RexALun
 * @date Aug 20, 2019 8:01:46 PM
 * @version 1.0.0
 * @TODO 
 */

@Controller

public class AdminController  {

	@Autowired
	private IAdminService adminService;
	
	@RequestMapping("/admin")
	public String HelloAdmin() {
		return "Hello springboot.";
	}
	
	@RequestMapping("/admin/{id}")
	public String AdminLogin(@PathVariable("id") Integer id, @RequestParam("password") String password) {
		return "This is a login web";
	}

}
